
import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Edvin
 */
public class FlyNode {
//	private ArrayList<FlyNode> children;
	ArrayList<Move> moves;
	int[] pos;
	boolean isPush;

	public FlyNode(boolean isPush) {
		this.isPush = isPush;
	}

	public FlyNode(ArrayList<Move> moves, int[] pos) {
		cloneArray(moves);
//		this.moves = moves;
		this.pos = pos;
	}

	public FlyNode(ArrayList<Move> moves, boolean isPush) {
		cloneArray(moves);
//		this.moves = moves;
		this.isPush = isPush;
	}

	void cloneArray(ArrayList<Move> m2){
		moves = new ArrayList<Move>(m2.size());
		for(int i = 0; i < m2.size(); i++){
			moves.add(m2.get(i));
		}
	}

//	void set(ArrayList<Move> moves, Move move){
//		this.moves = moves;
//		this.moves.add(move);
//	}

//	void add(FlyNode node){
//		if(children==null)
//			children=new ArrayList<FlyNode>(1);
//		children.add(node);
//	}
//
//	FlyNode get(int i){
//		if(children.size()-1 >= i)
//			return children.get(i);
//
//		U.pr("NO CHILD AT: "+i);
//		return null;
//	}
}
